PATHMac OS 8 and 9 Developer Documentation > Interapplication Communication > AppleScript for Scripters >

AppleScript Language Guide

   

Command Handlers

Command handlers are handlers for application or system commands. They are similar to subroutine handlers, but instead of defining responses to user-defined commands, they define responses to commands, such as Open, Print, or Move, that are sent to applications. They may also define responses to commands that are sent to scriptable items in the Mac OS, such as desktop printers or the Appearance control panel.

Command handlers are described in the following sections:

For information about recursion in command handlers, see Recursive Subroutines. For information about the scope of variables and properties in handlers, see Scope of Script Variables and Properties.


© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)